package com.wzh.ojcodesandbox.codesandbox.impl;


import com.wzh.ojcodesandbox.model.ExecuteCodeRequest;
import com.wzh.ojcodesandbox.model.ExecuteCodeResponse;
import org.springframework.stereotype.Component;

/**
 * @author wzh
 * 通过process类以控制控制台执行对应的编译运行语句来完成代码的运行
 * java代码原生实现，直接复用模板方法
 */
@Component
public class JavaNativeCodeSandbox extends JavaCodeSandboxTemplate {

    @Override
    public ExecuteCodeResponse executeCode(ExecuteCodeRequest executeCodeRequest) {
        return super.executeCode(executeCodeRequest);
    }
}
